/*
 * @Author: xuyunke xyk18697347312@163.com
 * @Date: 2024-11-27 10:07:57
 * @LastEditors: xuyunke xyk18697347312@163.com
 * @LastEditTime: 2024-11-28 11:31:18
 * @FilePath: \ruoyi\RuoYi-GW-Vue\src\api\apply\warn.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询提醒类型列表
export function listWarn(query) {
  return request({
    url: 'sysReminderConfigs/list',
    method: 'get',
    params: query
  })
}

// 新增提醒配置
export function addWarn(data) {
  return request({
    url: '/sysReminderConfigs/add',
    method: 'post',
    data: data
  })
}
// 修改配置
export function updateWarn(data) {
  return request({
    url: '/sysReminderConfigs/update',
    method: 'POST',
    data: data
  })
}
// 删除字典数据
export function delWarn(ids) {
  return request({
    url: '/sysReminderConfigs/' + ids,
    method: 'delete'
  })
}







// 删除字典类型
export function delType(dictId) {
  return request({
    url: '/system/dict/type/' + dictId,
    method: 'delete'
  })
}

// 刷新字典缓存
export function refreshCache() {
  return request({
    url: '/system/dict/type/refreshCache',
    method: 'delete'
  })
}

// 获取字典选择框列表
export function optionselect() {
  return request({
    url: '/system/dict/type/optionselect',
    method: 'get'
  })
}